package com.lkinga.www.View;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import com.lkinga.www.Model.MOVIE;
import com.lkinga.www.Model.recommend;

public class recom  extends JFrame{
	

	private JLabel labelTarget = new JLabel("推荐内容");
	
	public recom() {
		Box box = Box.createVerticalBox();
		JButton btn0 = new JButton(MOVIE.get(recommend.get(1)));
		JButton btn1 = new JButton(MOVIE.get(recommend.get(2)));
		JButton btn2 = new JButton(MOVIE.get(recommend.get(3)));
		JPanel p2 = new JPanel();
		p2.setLayout(new GridLayout(4, 1));
		p2.add(labelTarget);
		
		
		p2.add(btn1);
		p2.add(btn2);
		p2.add(btn0);
		box.add(p2);
		
		add(box);
		setTitle("推荐页面");
		setLocationRelativeTo(null);
		setVisible(true);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		pack();
	}
	

}
